const { xml2js } = require("xml-js");
const toJson = (xmlData) => {
    const xmlObj = xml2js(xmlData, { compact: false, captureSpacesBetweenElements: true })
    return xmlObj;
};

exports.toJson = toJson